<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>productList</title>
</head>
<body>
<div th:include="back/common/css_js :: main"></div>
<div class="container">
    <table class="table">
        <tr>
            <th>编号</th>
            <th>景点名称</th>
            <th>价格</th>
            <th>支付状态</th>
            <th>操作</th>
        </tr>
        <tr th:each="one,star:${ShoppingCart}">
            <td th:text="${star.count}"/>
            <td th:text="${one.scenicSpot}"/>
            <td th:text="${one.price}"/>
            <td th:text="${one.payment}"/>
            <td><a th:href="@{'/passenger/buy/' + ${one.id}}" class="btn btn-primary btn-sm">支付</a>
                <a th:href="@{'/passenger/del/' + ${one.id}}" class="btn btn-primary btn-sm">删除</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>